package com.sew.sewweb.service.impl;

import com.sew.sewweb.bean.OrgUnitEntity;
import com.sew.sewweb.common.utils.PageUtils;
import com.sew.sewweb.common.utils.Query;
import com.sew.sewweb.mapper.OrgUnitMapper;
import com.sew.sewweb.service.OrgUnitService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;



@Service("orgUnitService")
public class OrgUnitServiceImpl extends ServiceImpl<OrgUnitMapper, OrgUnitEntity> implements OrgUnitService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrgUnitEntity> page = this.page(
                new Query<OrgUnitEntity>().getPage(params),
                new QueryWrapper<OrgUnitEntity>()
        );

        return new PageUtils(page);
    }

}